
Ext.define('Packt.view.Login', { 
			
			extend: 'Ext.window.Window',
			
			alias: 'widget.login',
			
			autoShow: true, 
			
			height: 170, 
			
			width: 360, 

	layout: {
			type: 'fit' 
			},
			
			
			//requires: [
			           	//	'Packt.view.Translation'
			       //   ],

			 
			title: 'Login',
			iconCls: '.pic',
			closeAction: 'hide', 
			closable: false ,
			
	items: [
	        	
	        	        	      
		     {
		    	 xtype: 'form', 
		    	 frame: false, 
		    	 bodyPadding: 15,
		    	 defaults: 
		    	 { 
			    	xtype: 'textfield', 
			    	anchor: '100%', 
			    	labelWidth: 60 ,
			    	allowBlank: false, 
			    	vtype: 'alphanum', 
			    	minLength: 3, 
			    	msgTarget: 'under'
		    	},
		    	items: [
						     {
						    	 name: 'user',
						    	 fieldLabel: 'user',
						    	 maxLength :25	,
						    	 msgTarget: 'under'
						     },
						     {
						    	 inputType: 'password', 
						    	 name: 'password',
						    	 fieldLabel:'password',
						    	 maxLength :15,
						    	 msgTarget: 'under',
						    	 enableKeyEvents: true,
						    	 id: 'password',
						    	 //vtype : 'customPass'
						     }
						     
				      ] ,
		     
		     
			 dockedItems: [
                 
			                 {
			                	 xtype: 'toolbar',
			                	 dock: 'bottom',
              
			                	 items: [
                     
				                	     //  {
	     	        	    
						   	        	    //xtype: 'Translation'
						   	        	    //},
						                     {
						                   	  xtype: 'tbfill'
						                     },
						                     {
						                   	  xtype: 'button', 
						                   	  itemId: 'cancel',
						                   	  iconCls: 'cancel',
						                   	  text: 'cancel'
						                     },
						                     {
						                   	  xtype: 'button',
						                   	  itemId: 'submit',
						                   	  formBind: true, 
						                   	  iconCls: 'key-go',
						                   	  text: 'submit1'
						                     }
					                    ]
					             }
					        ]
					}
						        
		     	]
		
		
		  
});
